Skip to main content

Interface: Api

Methods

create

create(args): Promise<Status<{ created_at?: string ; id: string ; status?: "unknown" | "ready" | "running" | "ended" ; updated_at?: string }>>

Creates a new meeting via CRUD

Parameters

NameType
argsObject
args.abortSignal?AbortSignal
args.accessToken?string
args.apiAddressstring
args.headers?HeadersInit

Returns

Promise<Status<{ created_at?: string ; id: string ; status?: "unknown" | "ready" | "running" | "ended" ; updated_at?: string }>>

meeting id


join

join(args): Promise<Status<{ location: string ; token: string }>>

Joins a meeting for particular participantId and participantSecret

Parameters

NameType
argsObject
args.abortSignal?AbortSignal
args.apiAddressstring
args.headers?HeadersInit
args.meetingIdstring
args.participantIdstring
args.participantSecretstring

Returns

Promise<Status<{ location: string ; token: string }>>

location path to be able to connect to WebSocket for all the meeting updates


participants

participants(args): Promise<Status<{ created_at: string ; id: string ; meeting_id: string ; participant_secret: string ; status: "ready" | "joined" | "left" | "removed" ; updated_at: string }>>

Creates participant_id and participant_secret for the given meetingId

Parameters

NameType
argsObject
args.abortSignal?AbortSignal
args.accessToken?string
args.apiAddressstring
args.headers?HeadersInit
args.meetingIdstring

Returns

Promise<Status<{ created_at: string ; id: string ; meeting_id: string ; participant_secret: string ; status: "ready" | "joined" | "left" | "removed" ; updated_at: string }>>


terminate

terminate(args): Promise<Status<unknown>>

Terminates meeting with the specified meetingId

Parameters

NameType
argsObject
args.abortSignal?AbortSignal
args.accessToken?string
args.apiAddressstring
args.headers?HeadersInit
args.meetingIdstring

Returns

Promise<Status<unknown>>


token

token(args): Promise<Status<{ access_token: string ; expires_in: number ; scope: string ; token_type: "Bearer" }>>

Creates a new meeting via CRUD

Parameters

NameType
argsObject
args.abortSignal?AbortSignal
args.apiAddressstring
args.headers?HeadersInit
args.tokenstring

Returns

Promise<Status<{ access_token: string ; expires_in: number ; scope: string ; token_type: "Bearer" }>>

obj with access_token